// vite.config.js
import vue from 'file:///G:/projects/Project_manage/studyCategory_projects/vue2/detailed-explanation-of-vue-components/node_modules/.pnpm/@vitejs+plugin-vue2@2.3.1_vite@5.2.8_vue@2.7.14/node_modules/@vitejs/plugin-vue2/dist/index.mjs'
import Icons from 'file:///G:/projects/Project_manage/studyCategory_projects/vue2/detailed-explanation-of-vue-components/node_modules/.pnpm/unplugin-icons@0.16.6_vue-template-compiler@2.7.14_vue-template-es2015-compiler@1.9.1/node_modules/unplugin-icons/dist/vite.mjs'
import AutoImport from 'file:///G:/projects/Project_manage/studyCategory_projects/vue2/detailed-explanation-of-vue-components/node_modules/.pnpm/unplugin-auto-import@0.17.5_@vueuse+core@9.13.0/node_modules/unplugin-auto-import/dist/vite.js'
import IconsResolver from 'file:///G:/projects/Project_manage/studyCategory_projects/vue2/detailed-explanation-of-vue-components/node_modules/.pnpm/unplugin-icons@0.16.6_vue-template-compiler@2.7.14_vue-template-es2015-compiler@1.9.1/node_modules/unplugin-icons/dist/resolver.mjs'
import Components from 'file:///G:/projects/Project_manage/studyCategory_projects/vue2/detailed-explanation-of-vue-components/node_modules/.pnpm/unplugin-vue-components@0.26.0_vue@2.7.14/node_modules/unplugin-vue-components/dist/vite.js'
import {
  defineConfig,
  loadEnv
} from 'file:///G:/projects/Project_manage/studyCategory_projects/vue2/detailed-explanation-of-vue-components/node_modules/.pnpm/vite@5.2.8_@types+node@20.12.7/node_modules/vite/dist/node/index.js'
import path from 'node:path'
var __vite_injected_original_dirname =
  'G:\\projects\\Project_manage\\studyCategory_projects\\vue2\\detailed-explanation-of-vue-components'
console.log(process.env.APP_NAME, process.env.NODE_ENV)
console.log(import.meta.env)
var isPrd = process.env.NODE_ENV === 'production'
var vite_config_default = defineConfig(async ({ command, mode }) => {
  const env = loadEnv(mode, process.cwd(), '')
  console.log(env)
  return {
    //https://vitejs.cn/vite3-cn/config/shared-options.html
    base: '/d_e_o_v_c/',
    server: {
      host: '127.0.0.1',
      port: 3303,
      // 指定开发服务器端口。注意：如果端口已经被使用，Vite 会自动尝试下一个可用的端口，所以这可能不是开发服务器最终监听的实际端口。
      strictPort: true,
      // 设为 true 时若端口已被占用则会直接退出，而不是尝试下一个可用端口
      hmr: {
        // overlay: false
      }
    },
    envPrefix: 'VITE_',
    // 以 envPrefix 开头的环境变量会通过 import.meta.env 暴露在你的客户端源码中。默认： VITE_
    resolve: {
      alias: {
        '@': `${path.resolve(__vite_injected_original_dirname, 'src')}`
      }
    },
    build: {
      /*
      `true`：Vite将在构建过程中使用合适的工具（如terser或esbuild）对JavaScript和CSS代码进行压缩，移除不必要的空白字符、注释、缩短变量名等，以减小文件体积，提高加载性能。
      `false`：禁用代码压缩。构建出的文件将保留原始的可读性较高的格式，但文件大小可能会较大，不利于网络传输和浏览器加载。
      */
      minify: isPrd
    },
    plugins: [
      vue(),
      Components({
        resolvers: [
          // https://www.npmjs.com/package/unplugin-icons/v/0.7.2
          IconsResolver({
            componentPrefix: 'uicon'
          })
        ],
        dts: 'src/components.d.ts'
      }),
      Icons({ compiler: 'vue2' }),
      AutoImport({
        imports: ['@vueuse/core'],
        dts: 'src/auto-imports.d.ts'
      })
    ]
  }
})
export { vite_config_default as default }
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJHOlxcXFxwcm9qZWN0c1xcXFxQcm9qZWN0X21hbmFnZVxcXFxzdHVkeUNhdGVnb3J5X3Byb2plY3RzXFxcXHZ1ZTJcXFxcZGV0YWlsZWQtZXhwbGFuYXRpb24tb2YtdnVlLWNvbXBvbmVudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkc6XFxcXHByb2plY3RzXFxcXFByb2plY3RfbWFuYWdlXFxcXHN0dWR5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